package cn.wizzer.app.crown.commons.util;

import redis.clients.jedis.ScanParams;

public class ScanParamsUtil {
    private static volatile ScanParams SCAN_PARAMS = null;

    public static ScanParams get(){
        if (null == SCAN_PARAMS) {
            synchronized (ScanParamsUtil.class) {
                if (null == SCAN_PARAMS) {
                    SCAN_PARAMS = new ScanParams();
                    SCAN_PARAMS.count(Integer.MAX_VALUE);
                }
            }
        }
        return SCAN_PARAMS;
    }
}
